package com.lm.upms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lm.upms.api.entity.SysUserRole;
import org.apache.ibatis.annotations.Param;

/**
 * 用户角色关联 Mapper接口
 *
 * @author lm
 * @date
 */
public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {

    /**
     * 根据用户Id删除该用户的角色关系
     *
     * @param userId 用户ID
     * @return
     */
    Boolean deleteByUserId(@Param("userId") Integer userId);

}
